{% extends "base.html" %}
{% block content %}
    <h1>Регистрация</h1>

    <div class="reg_block">
        <!--
        <p>Вы можете зарегистрироваться используя open ID социальных сетей</p>

        <ul class="social_reg">
            <li class="item"><a href="#"><img src="/media/images/icon_socoal_reg_vk.png" width="56" height="56"></a></li>
            <li class="item"><a href="#"><img src="/media/images/icon_socoal_reg_fb.png" width="56" height="56"></a></li>
            <li class="item"><a href="#"><img src="/media/images/icon_socoal_reg_o.png" width="56" height="56"></a></li>
        </ul>
        <p>Либо заполнив форму для регистрации</p>
        -->
        <p>Заполните форму для регистрации</p>
        <form class="form form_reg" action="#" method="post">
            <dl>
                {% if form.first_name.errors %}
                    <dt><p class="error_message">{{ form.first_name.errors|striptags }}</p></dt>
                {% endif %}
                <dt><label for="id_first_name">Имя:</label></dt>
                <dd><input id="id_first_name" name="first_name" class="text_input" type="text" value="{{ form.data.first_name }}"></dd>

                {% if form.last_name.errors %}
                    <dt><p class="error_message">{{ form.last_name.errors|striptags }}</p></dt>
                {% endif %}
                <dt><label for="id_last_name">Фамилия:</label></dt>
                <dd><input id="id_last_name" name="last_name"class="text_input" type="text" value="{{ form.data.last_name }}"></dd>

                {% if form.email.errors %}
                    <dt><p class="error_message">{{ form.email.errors|striptags }}</p></dt>
                {% endif %}
                <dt><label for="id_email">e-mail:</label></dt>
                <dd><input id="id_email" name="email" class="text_input" type="text" value="{{ form.data.email }}"></dd>

                {% if form.password1.errors %}
                    <dt><p class="error_message">{{ form.password1.errors|striptags }}</p></dt>
                {% endif %}
                <dt><label for="id_password1">Пароль:</label></dt>
                <dd><input id="id_password1" name="password1" class="text_input" type="password"></dd>

                {% if form.password2.errors %}
                    <dt><p class="error_message">{{ form.password2.errors|striptags }}</p></dt>
                {% endif %}
                <dt><label for="id_password2">Подтвердите пароль:</label></dt>
                <dd><input id="id_password2" name="password2" class="text_input" type="password"></dd>
                {% if form.non_field_errors %}
                    {% for error in form.non_field_errors %}
                        <dt><p class="error_message">{{ error|striptags }}</p></dt>
                    {% endfor %}
                {% endif %}

                <input type="hidden" id="id_username" name="username" value="username"/>
            </dl>

            <div class="buttons"><input class="button" type="submit" value="Зарегистрироваться"></div>
        </form>

    </div>
{% endblock %}
